﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IPC.Communication.Core.Address
{
    public class DeviceAddressDataBase
    {
        public int AddressStart
        {
            get;
            set;
        }

        public ushort Length
        {
            get;
            set;
        }

        public virtual void Parse(string address, ushort length)
        {
            this.AddressStart = int.Parse(address);
            this.Length = length;
        }

        public override string ToString()
        {
            return this.AddressStart.ToString();
        }
    }
}
